package com.zzl.finance.data.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

/**
 * 银行账户表
 *
 * @author gull
 * @date 2022-07-01 18:23:10
 */
@Data
@TableName("b_bank_account")
@ApidocModel
@SuppressWarnings("javadoc")
public class BankAccountEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "账号名称")
    private String accountName;
    @ApidocModelProperty(description = "所属企业id")
    private String enterpriseId;
    @ApidocModelProperty(description = "对公账户")
    private String corporateAccount;
    @ApidocModelProperty(description = "开户行全称")
    private String fullNameOpeningBank;
    @ApidocModelProperty(description = "银行名称")
    private String abbreviation;
    @ApidocModelProperty(description = "注册省份")
    private String province;
    @ApidocModelProperty(description = "注册城市")
    private String city;
    @ApidocModelProperty(description = "地区code")
    private String areaId;
    @ApidocModelProperty(description = "开户网点")
    private String accountOpeningOutlet;
    @ApidocModelProperty(description = "联行号")
    private String bankNumber;
    @ApidocModelProperty(description = "账户类型 0基本户1一般户2专用3临时4 注册账户")
    private Integer accountType;
    @ApidocModelProperty(description = "是否注册账号，1 是，0 否")
    private Integer registerAccount;
    @ApidocModelProperty(description = "启用状态 false停用 true启用")
    private Boolean stopState;
    @ApidocModelProperty(description = "是否打款认证，0：未认证，1：已认证")
    private Integer paymentCertification;
    @ApidocModelProperty(description = "是否置顶 0否 1置顶")
    private Integer isSetTop;
    @ApidocModelProperty(description = "组织id")
    private Integer orgId;
    @ApidocModelProperty(description = "1 表示删除，0 表示未删除")
    @TableField(value = "is_deleted")
    @TableLogic(value = "0", delval = "1")
    private Integer deletedStatus;
    @ApidocModelProperty(description = "创建人id")
    private Integer creatorId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @ApidocModelProperty(description = "修改人id")
    private Integer updaterId;
    @ApidocModelProperty(description = "企业类别0.核心企业1.供应商，2集团")
    private Integer enterpriseCategory;
    @ApidocModelProperty(description = "备注")
    private String remark;
    @ApidocModelProperty(description = "企业名称")
    private String enterpriseName;

}
